Change in openvpn[master]: FreeBSD DCO: repair incoming "delete peer" notifications in p2p clien...
A message that is not in the archive (sent off-list or not yet received): gerrit.1762447154000.I991d6053776efed771bc1a3880acb80b55959cbc@...2715...
Attention is currently required from: flichtenheld, plaisthos.
Hello plaisthos, flichtenheld,
I'd like you to do a code review.
Please visit
http://gerrit.openvpn.net/c/openvpn/+/1353?usp=email
to review the following change.
Change subject: FreeBSD DCO: repair incoming "delete peer" notifications in p2p client mode
......................................................................
FreeBSD DCO: repair incoming "delete peer" notifications in p2p client mode
commit 4a48841da2 introduced a workaround for spurious DCO notifications "with no useful content" on Linux - namely, ignoring dco_message_type==0 in forward.c, process_incoming_dco(), "because Linux has no message type 0 anyway".
Each DCO platform uses its own enum for these notification messages *inside* OpenVPN (which might not have the best design decision ever), and FreeBSD had OVPN_CMD_DEL_PEER in the enum on "position 0"...
Fix by changing the enum to start with 1. Tested with DEL_PEER in p2p client and DEL_PEER & FLOAT in p2mp server mode.
Github: fixes OpenVPN/openvpn#881
---
M src/openvpn/dco_freebsd.h
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/53/1353/1
src/openvpn/dco_freebsd.h +1 -1
@@ -33,7 +33,7 @@enum ovpn_message_type_t { -OVPN_CMD_DEL_PEER , +OVPN_CMD_DEL_PEER =1 ,OVPN_CMD_PACKET ,OVPN_CMD_SWAP_KEYS ,OVPN_CMD_FLOAT_PEER ,
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1353?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I991d6053776efed771bc1a3880acb80b55959cbc
Gerrit-Change-Number: 1353
Gerrit-PatchSet: 1
Gerrit-Owner: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Attention is currently required from: cron2, plaisthos.
flichtenheld has posted comments on this change by cron2. ( http://gerrit.openvpn.net/c/openvpn/+/1353?usp=email )
Change subject: FreeBSD DCO: repair incoming "delete peer" notifications in p2p client mode
......................................................................
Patch Set 1: Code-Review-1
(1 comment)
File src/openvpn/dco_freebsd.h:
http://gerrit.openvpn.net/c/openvpn/+/1353/comment/361a0454_0355a257?usp=email :
PS1, Line 36: OVPN_CMD_DEL_PEER = 1,
Should have some comment why this is required.
Signature · 18 lines
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1353?usp=email To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I991d6053776efed771bc1a3880acb80b55959cbc Gerrit-Change-Number: 1353 Gerrit-PatchSet: 1 Gerrit-Owner: cron2 <[email protected]...> Gerrit-Reviewer: flichtenheld <[email protected]...> Gerrit-Reviewer: plaisthos <[email protected]...> Gerrit-CC: openvpn-devel <[email protected]> Gerrit-Attention: plaisthos <[email protected]...> Gerrit-Attention: cron2 <[email protected]...> Gerrit-Comment-Date: Fri, 07 Nov 2025 13:29:03 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes
Attention is currently required from: cron2, flichtenheld, plaisthos.
Hello flichtenheld, plaisthos,
I'd like you to reexamine a change. Please visit
http://gerrit.openvpn.net/c/openvpn/+/1353?usp=email
to look at the new patch set (#2).
The following approvals got outdated and were removed:
Code-Review-1 by flichtenheld
Change subject: FreeBSD DCO: repair incoming "delete peer" notifications in p2p client mode
......................................................................
FreeBSD DCO: repair incoming "delete peer" notifications in p2p client mode
commit 4a48841da2 introduced a workaround for spurious DCO notifications "with no useful content" on Linux - namely, ignoring dco_message_type==0 in forward.c, process_incoming_dco(), "because Linux has no message type 0 anyway".
Each DCO platform uses its own enum for these notification messages *inside* OpenVPN (which might not have the best design decision ever), and FreeBSD had OVPN_CMD_DEL_PEER in the enum on "position 0"...
Fix by changing the enum to start with 1. Tested with DEL_PEER in p2p client and DEL_PEER & FLOAT in p2mp server mode.
v2:
introduce OVPN_CMD_NO_MESSAGE in position 0, and a comment explaining why. A future commit can then clean up forward.c and dco_linux.c to use the constant, and not "magic 0 which happens to be in there after CLEAR()".
Github: fixes OpenVPN/openvpn#881
---
M src/openvpn/dco_freebsd.h
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/53/1353/2
src/openvpn/dco_freebsd.h +2 -0
@@ -33,6 +33,8 @@enum ovpn_message_type_t { +/* message type #0 is treated as magic number by process_incoming_dco() */ +OVPN_CMD_NO_MESSAGE =0 ,OVPN_CMD_DEL_PEER ,OVPN_CMD_PACKET ,OVPN_CMD_SWAP_KEYS ,
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1353?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I991d6053776efed771bc1a3880acb80b55959cbc
Gerrit-Change-Number: 1353
Gerrit-PatchSet: 2
Gerrit-Owner: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: cron2 <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Attention is currently required from: flichtenheld, plaisthos.
cron2 has posted comments on this change by cron2. ( http://gerrit.openvpn.net/c/openvpn/+/1353?usp=email )
Change subject: FreeBSD DCO: repair incoming "delete peer" notifications in p2p client mode
......................................................................
Patch Set 3:
(1 comment)
File src/openvpn/dco_freebsd.h:
http://gerrit.openvpn.net/c/openvpn/+/1353/comment/399e42cb_cfbf57f1?usp=email :
PS1, Line 36: OVPN_CMD_DEL_PEER = 1,
Quoted 1 line
Should have some comment why this is required.
Done
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1353?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I991d6053776efed771bc1a3880acb80b55959cbc
Gerrit-Change-Number: 1353
Gerrit-PatchSet: 3
Gerrit-Owner: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Fri, 07 Nov 2025 13:50:56 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: flichtenheld <[email protected]...>
Attention is currently required from: cron2, plaisthos.
flichtenheld has posted comments on this change by cron2. ( http://gerrit.openvpn.net/c/openvpn/+/1353?usp=email )
Change subject: FreeBSD DCO: repair incoming "delete peer" notifications in p2p client mode
......................................................................
Patch Set 3: Code-Review+2
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1353?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I991d6053776efed771bc1a3880acb80b55959cbc
Gerrit-Change-Number: 1353
Gerrit-PatchSet: 3
Gerrit-Owner: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: cron2 <[email protected]...>
Gerrit-Comment-Date: Fri, 07 Nov 2025 14:13:08 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
PATCH v3 1/1 FreeBSD DCO: repair incoming "delete peer" notifications in p2p client mode
In reply to a message not in the archivecommit 4a48841da2 introduced a workaround for spurious DCO notifications "with no useful content" on Linux - namely, ignoring dco_message_type==0 in forward.c, process_incoming_dco(), "because Linux has no message type 0 anyway".
Each DCO platform uses its own enum for these notification messages *inside* OpenVPN (which might not have the best design decision ever), and FreeBSD had OVPN_CMD_DEL_PEER in the enum on "position 0"...
Fix by changing the enum to start with 1. Tested with DEL_PEER in p2p client and DEL_PEER & FLOAT in p2mp server mode.
v2:
introduce OVPN_CMD_NO_MESSAGE in position 0, and a comment explaining why. A future commit can then clean up forward.c and dco_linux.c to use the constant, and not "magic 0 which happens to be in there after CLEAR()".
Github: fixes OpenVPN/openvpn#881
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1353
---
This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1353
This mail reflects revision 3 of this Change.
Acked-by according to Gerrit (reflected above):
Frank Lichtenheld <[email protected]...>
src/openvpn/dco_freebsd.h +2 -0
@@ -33,6 +33,8 @@enum ovpn_message_type_t { +/* message type #0 is treated as magic number by process_incoming_dco() */ +OVPN_CMD_NO_MESSAGE =0 ,OVPN_CMD_DEL_PEER ,OVPN_CMD_PACKET ,OVPN_CMD_SWAP_KEYS ,
[Openvpn-devel] [PATCH applied] Re: FreeBSD DCO: repair incoming 'delete peer' notifications in p2p client mode
Thanks for the review. Tested on FreeBSD 14.3 with DCO.
As it says in the commit, we might want to make the other DCO backends use "OVPN_CMD_NO_MESSAGE" as well, instead of "defaulting to 0", but that's for another day.
Patch has been applied to the master branch.
commit c4fe7813d8b8eba99549a7b5e9499a31f91c8109
Author: Gert Doering Date: Fri Nov 7 15:13:27 2025 +0100
FreeBSD DCO: repair incoming 'delete peer' notifications in p2p client mode
Signed-off-by: Gert Doering <[email protected]...>
Acked-by: Frank Lichtenheld <[email protected]...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1353
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg34237.html
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering
[Openvpn-devel] [XS] Change in openvpn[master]: FreeBSD DCO: repair incoming 'delete peer' notifications in p2p clien...
In reply to a message not in the archiveHello flichtenheld, plaisthos,
I'd like you to reexamine a change. Please visit
http://gerrit.openvpn.net/c/openvpn/+/1353?usp=email
to look at the new patch set (#4).
The following approvals got outdated and were removed:
Code-Review+2 by flichtenheld
Change subject: FreeBSD DCO: repair incoming 'delete peer' notifications in p2p client mode
......................................................................
FreeBSD DCO: repair incoming 'delete peer' notifications in p2p client mode
commit 4a48841da2 introduced a workaround for spurious DCO notifications "with no useful content" on Linux - namely, ignoring dco_message_type==0 in forward.c, process_incoming_dco(), "because Linux has no message type 0 anyway".
Each DCO platform uses its own enum for these notification messages *inside* OpenVPN (which might not have the best design decision ever), and FreeBSD had OVPN_CMD_DEL_PEER in the enum on "position 0"...
Fix by changing the enum to start with 1. Tested with DEL_PEER in p2p client and DEL_PEER & FLOAT in p2mp server mode.
v2:
introduce OVPN_CMD_NO_MESSAGE in position 0, and a comment explaining why. A future commit can then clean up forward.c and dco_linux.c to use the constant, and not "magic 0 which happens to be in there after CLEAR()".
Github: fixes OpenVPN/openvpn#881
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1353
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg34237.html
---
M src/openvpn/dco_freebsd.h
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/53/1353/4
src/openvpn/dco_freebsd.h +2 -0
@@ -33,6 +33,8 @@enum ovpn_message_type_t { +/* message type #0 is treated as magic number by process_incoming_dco() */ +OVPN_CMD_NO_MESSAGE =0 ,OVPN_CMD_DEL_PEER ,OVPN_CMD_PACKET ,OVPN_CMD_SWAP_KEYS ,
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1353?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I991d6053776efed771bc1a3880acb80b55959cbc
Gerrit-Change-Number: 1353
Gerrit-PatchSet: 4
Gerrit-Owner: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
[Openvpn-devel] [XS] Change in openvpn[master]: FreeBSD DCO: repair incoming 'delete peer' notifications in p2p clien...
In reply to a message not in the archivecron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/1353?usp=email )
Change subject: FreeBSD DCO: repair incoming 'delete peer' notifications in p2p client mode
......................................................................
FreeBSD DCO: repair incoming 'delete peer' notifications in p2p client mode
commit 4a48841da2 introduced a workaround for spurious DCO notifications "with no useful content" on Linux - namely, ignoring dco_message_type==0 in forward.c, process_incoming_dco(), "because Linux has no message type 0 anyway".
Each DCO platform uses its own enum for these notification messages *inside* OpenVPN (which might not have the best design decision ever), and FreeBSD had OVPN_CMD_DEL_PEER in the enum on "position 0"...
Fix by changing the enum to start with 1. Tested with DEL_PEER in p2p client and DEL_PEER & FLOAT in p2mp server mode.
v2:
introduce OVPN_CMD_NO_MESSAGE in position 0, and a comment explaining why. A future commit can then clean up forward.c and dco_linux.c to use the constant, and not "magic 0 which happens to be in there after CLEAR()".
Github: fixes OpenVPN/openvpn#881
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1353
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg34237.html
---
M src/openvpn/dco_freebsd.h
1 file changed, 2 insertions(+), 0 deletions(-)
src/openvpn/dco_freebsd.h +2 -0
@@ -33,6 +33,8 @@enum ovpn_message_type_t { +/* message type #0 is treated as magic number by process_incoming_dco() */ +OVPN_CMD_NO_MESSAGE =0 ,OVPN_CMD_DEL_PEER ,OVPN_CMD_PACKET ,OVPN_CMD_SWAP_KEYS ,
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1353?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I991d6053776efed771bc1a3880acb80b55959cbc
Gerrit-Change-Number: 1353
Gerrit-PatchSet: 4
Gerrit-Owner: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>